package gui;

import org.eclipse.jface.action.ICoolBarManager;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.jface.action.ToolBarContributionItem;
import org.eclipse.jface.action.ToolBarManager;
import org.eclipse.swt.SWT;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.application.ActionBarAdvisor;
import org.eclipse.ui.application.IActionBarConfigurer;

public class ApplicationActionBarAdvisor extends ActionBarAdvisor {

	public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) {
		super(configurer);
	}

	protected void makeActions(IWorkbenchWindow window) {
	}

	protected void fillMenuBar(IMenuManager menuBar) {
	}

	
	protected void fillCoolBar(ICoolBarManager _coolBar) {
		//super.fillCoolBar(coolBar);
		IToolBarManager toolbar = new ToolBarManager(SWT.FLAT);
		_coolBar.add(new ToolBarContributionItem(toolbar,"main"));
		toolbar.add(new gui.action.MoodAction("Change mood"));
		toolbar.add(new gui.action.ChangeRoomAction("Change room"));
		//coolBar.add(new gui.action.MoodAction(Client.CONNECTED_USER.avatar.mood) );
		//coolBar.add(new gui.action.MoodAction("caca") );	
	}
	
}
